package Global;

/*****************************************************************
* Name : ClassIdentification
* Aim : This class aims to keep the attributes of each class in a structure and is used in the global classList *
*****************************************************************/
public class ClassIdentificationClass 
{
	/*Name of the class*/
	String name;
	/*Ratio of the related class, ratio means 
	 * related node's amount / all nodes' amount*/
	double ratio;
	/*Id of the class*/
	int id;  
	
	/*Constructor of the class*/
	public ClassIdentificationClass() 
	{
		// TODO Auto-generated constructor stub
	}
	
	public String getName() 
	{
		return name;
	}
	
	public void setName(String name) 
	{
		this.name = name;
	}
	
	public double getRatio() 
	{
		return ratio;
	}
	
	public void setRatio(double ratio) 
	{
		this.ratio = ratio;
	}
	
	public int getId() 
	{
		return id;
	}
	
	public void setId(int id) 
	{
		this.id = id;
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "\n name: " +name + "  id: "+ id + "ratio: "+ ratio;
	}
	
	public void print()
	{
		System.out.println("  name: " +name + "  id: "+ id + "ratio: "+ ratio);
	}
}
